package request

// 定义接收数据的结构体
type AddGoodReq struct {
	// binding:"required"修饰的字段，若接收为空值，则报错，是必须字段
	Title    string  `form:"title" json:"title" `
	TypesId  int64   `form:"typesId" json:"typesId"  `
	Price    float32 `form:"price" json:"price" `
	Num      int64   `form:"num" json:"num" `
	CookieId int64   `form:"cookieId" json:"cookieId"  `
	Image    string  `form:"image" json:"image"  `
}

type AskLogReq struct {
	// binding:"required"修饰的字段，若接收为空值，则报错，是必须字段
	UserId  int64  `form:"userId" json:"userId"  binding:"required"`
	GoodsId int64  `form:"goodsId" json:"goodsId"  binding:"required"`
	Content string `form:"content" json:"content"  binding:"required"`
}

type OrderReq struct {
	// binding:"required"修饰的字段，若接收为空值，则报错，是必须字段
	UserId  int64 `form:"userId" json:"userId"  binding:"required"`
	GoodsId int64 `form:"goodsId" json:"goodsId"  binding:"required"`
}
